import 'package:flutter/material.dart';
import 'package:get/get.dart';
import '../../controllers/shop.dart';

class ShopPage extends GetView<ShopController> {
  const ShopPage({super.key});

  @override
  Widget build(BuildContext context) {
    return Scaffold(
      appBar: AppBar(
        title: Text("title"),
      ),
      body: Center(
        child: Column(
          mainAxisAlignment: MainAxisAlignment.center,
          children: [
            Obx(() => Text("${controller.counter}")),
            SizedBox(height: 40),
            ElevatedButton(
              onPressed: () {
                controller.inc();
              },
              child: Text("shop counter+1"),
            )
          ],
        ),
      ),
    );
  }
}
